﻿using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;

using UI.WebControls.ControlsBase;
namespace UI.WebControls
{
    /// <summary>
    /// UI层，页面控件基类，是与否的逻辑下拉
    /// </summary>
    public class YesOrNo : DropDownListBase
    {
        protected override void OnLoad(EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                base.Items.Add(new ListItem("=状态值=", ""));
                base.Items.Add(new ListItem("是", "y"));
                base.Items.Add(new ListItem("否", "n"));
            }
            base.OnLoad(e);
        }
    }
}
